ArcGIS Runtime SDK for WPF - Library Reference
SearchAsync(Geometry,Action<IList<S57FeatureObject>>) Method
See Also 
ESRI.ArcGIS.Client.AdvancedSymbology Namespace > HydrographicS57Layer Class > SearchAsync Method : SearchAsync(Geometry,Action<IList<S57FeatureObject>>) Method

inputGeometry
The input ESRI.ArcGIS.Client.Geometry.
resultCallback
Action delegate called when the operation completes. Contains a collection of S57FeatureObject.
Searches the S57 layer asynchronously for features intersecting the provided geometry.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub SearchAsync( _
   ByVal inputGeometry As Geometry, _
   ByVal resultCallback As Action(Of IList(Of S57FeatureObject)) _
) 
C# 
public void SearchAsync( 
   Geometry inputGeometry,
   Action<IList<S57FeatureObject>> resultCallback
)

Remarks

The SearchAsync operation takes a spatial geometry object (typically a MapPoint, Polyline, Polygon or Envelope) and returns a collection of S57FeatureObjects which intersect that geometry and/or the provided. Consider alternatively using the overloaded SearchAsync methods which take a buffer distance as a Double, and a S57 object name (acronym) as a String. To perform a search in screen coordinates you should use the HitTestAsync(Point,Int32,Action<IList<S57FeatureObject>>,Int32) or HitTestAsync(Rect,Int32,Action<IList<S57FeatureObject>>) methods.

Parameters

inputGeometry
The input ESRI.ArcGIS.Client.Geometry.
resultCallback
Action delegate called when the operation completes. Contains a collection of S57FeatureObject.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionInput geometry must be specified. Use ESRI.ArcGIS.Client.Layer.FullExtent property if necessary.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.